/**
 * 集合点管理模块路由,
 * meta字段说明:
 *  title: 作为网页标题使用
 *  breadcrumb: 是否显示在面包屑导航上面
 *  disableBreadcrumb: 在面包屑导航上面点击是否会跳转
 */
import layout from '@components/layout'
import secondRouteView from '@components/secondRouteView'
const _import = file => () => import('@views/' + file + '.vue')
export default {
  path: '/collection-point',
  name: 'collection',
  meta: {
    breadcrumb: false,
    title: '集合点'
  },
  component: layout,
  children: [
    {
      path: 'manager',
      name: 'collection.manager',
      meta: {
        breadcrumb: false,
        title: ''
      },
      component: secondRouteView,
      children: [
        {
          path: 'items/:page(\\d+)?',
          name: 'collection.manager.items',
          meta: {
            breadcrumb: true,
            title: '集合点列表'
          },
          props: {status: 1},
          component: _import('collectionPoint/items')
        },
        {
          path: 'add',
          name: 'collection.manager.add',
          meta: {
            breadcrumb: true,
            title: '添加集合点'
          },
          props: {status: 1},
          component: _import('collectionPoint/add')
        },
        {
          path: 'edit',
          name: 'collection.manager.edit',
          meta: {
            breadcrumb: true,
            title: '编辑集合点'
          },
          props: {status: 1},
          component: _import('collectionPoint/edit')
        }
      ]
    }
  ]
}
